package com.oxchinx.order.controller;

import com.oxchinx.order.config.GirlConfig;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * Created by dell on 2018/6/3.
 */
@RestController
public class GrilController {
    @Autowired
    private GirlConfig girlConfig;

    @GetMapping("/girl/print")
    public String print(){
        return "name:" + girlConfig.getName() + "; age: " + girlConfig.getAge();
    }
}
